package code._16reflect._01introduce;

public class Demo {
    public static void main(String[] args) {
        //获取应用类加载器
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        System.out.println("systemClassLoader = " + systemClassLoader);

        //获取平台类加载器
        ClassLoader parent = systemClassLoader.getParent();
        System.out.println("parent = " + parent);
        //获取根类加载器（不是Java写的、结果为NULL）
        ClassLoader parent1 = parent.getParent();
        System.out.println("parent1 = " + parent1);

    }
}
